package com.neo.base.fileTest

import com.neo.base.fileTest.ReadFileTest.{main1, main2}

import scala.io.Source

object ReadFileTest1 {
  def main(args: Array[String]): Unit = {
    if(args.length > 0){
      for (line <- Source.fromFile(args(0)).getLines)
        println(line.length + " " + line)
    }

  }

}
